package com.example.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HelloController {
    @RequestMapping("/hello")
    public String hello() {
        return "Hello World!";
    }

    @RequestMapping("/hello2")
    public String hello(String name) {
        return "Hello!" + name + ",Nice to meet U!";
    }
    @RequestMapping("/hello3")
    public String hello3(String name) {
        return "Welcome!" + name + ",Nice to meet U!";
    }
    @RequestMapping("/hello4")
    public String hello4(String name) {
        return "Welcome!" + name + ",Nice to meet U!";
    }

}